Purpose:
This example implements various wake-up options within the deep sleep mode on LPC111xLV

Running mode:
* Compile, Flash the program and reset.
* Puts chip in deep sleep mode (default - keep only IRC powered with no IRC ouptut in deep sleep mode)
* PIO0_2 is configured as wake up button
* PIO1_8 is toggling in active mode

Description:
This example allows the user to put the LPC111xLV in Deep Sleep mode where user has the option of keeping
1) All blocks powered down 
or 
2) Keep only IRC powered in deep sleep mode but with no IRC output 
or
3) Keep only IRC powered in deep sleep mode but with no IRC output

The configurations above can be selected in the pmutest.c source file using the PMU_Sleep function

The wake-up times can be measured by using the following pins:
a. Trigger pin (PIO0_2) - Used to get the device out of the deep-sleep mode. 
The pin is triggered externally (falling edge) to wake the device up.

b. Strobe pin (PIO1_8)  After wake-up, the device returns into run mode, and 
This pin is set high within the WAKEUP_IRQHANDLER() subroutine, and subsequently toggles in active/run mode.

The wakeup time is the difference between the falling edge of the trigger pin and the rising edge of the Strobe pin.

Scope Waveforms are in the waveforms folder (yellow waveform - PIO0_2, green waveform - PIO1_8)

Following typical results were observed at 25 C:
Current is measured on the VDD pin (1.8 v core supply voltage)

1) All blocks powered down
Deep Sleep current = ~1.2 uA, 29 us wakeup time 

2) Keep only IRC powered in deep sleep mode but with no IRC output
Deep Sleep current = ~6.4 uA, 5.3 us wakeup time 

3) Keep IRC and its output powered in deep sleep mode
Deep Sleep current = ~950 uA, 3.7 us wakeup time